﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QLHS2010
{
    public class HocSinhDTO
    {
        private string _maHS;
        private string _tenHS;
        private string _diachi;
        private DateTime _ngaysinh;
        private string _giotinh;
        private string _maLop;
        private int _namhoc;

        public string MaHS
        {
            get { return _maHS; }
            set
            {
                if (value == null)
                    throw new Exception("Ma HS khong duoc rong");
                _maHS = value;
            }
        }

        public string TenHS
        {
            get { return _tenHS; }
            set { _tenHS = value; }
        }

        public DateTime NgaySinh
        {
            get { return _ngaysinh; }
            set { _ngaysinh = value; }
        }

        public string DiaChi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }

        public string MaLop
        {
            get { return _maLop; }
            set { _maLop = value; }
        }

        public string GioiTinh
        {
            get { return _giotinh; }
            set { _giotinh = value; }
        }

        public int NamHoc
        {
            get { return _namhoc; }
            set { _namhoc = value; }
        }
    }
}
